/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.edu.ifal.alsuhaul.bd;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

/**
 *
 * @author Usuario
 */
public class ConexaoAlsuhaul {
    public Connection abreConexao() throws SQLException {
        Connection conexao = null;
        try {
          conexao = DriverManager.getConnection("jdbc:mysql://localhost/Alsuhaul01", "root", "rosy");
           
        } catch (SQLException ex) {
        System.out.println(ex.getMessage());
         }
 return conexao;
    }
}
